FROM node:10

RUN mkdir /app
WORKDIR /app
COPY ./.env /.env
COPY ./build.sh /build.sh
VOLUME ["/app"]
RUN chmod +x /build.sh
#
#RUN npm install -g cnpm --registry=https://registry.npm.taobao.org && cd /app && cnpm install
#RUN cd /app && npm install
# bundle app source
EXPOSE 3001

CMD [ "/build.sh" ]